import {Component} from '@angular/core';
import {AgRendererComponent} from '@ag-grid-community/angular';
import {ICellRendererParams} from '@ag-grid-community/core';
import {ExpressionService} from "@core/services/expression/ExpressionService";

@Component({
  selector: 'apes-render-link',
  template: `
    <div class="box-div">{{params.value}}</div>
   `,
  styles: [`
    .box-div {
      width: 100%;
      height: 100%;
      color: #3693c6;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }

    .box-div:hover {
      color:red;
      cursor: pointer;
    }
  `]
})
export class ApesRenderLinkComponent implements AgRendererComponent {
  value:any;
  params: ICellRendererParams;
  valueFormatter:any;
  constructor(private  expressionService:ExpressionService) { }
  refresh(params: any): boolean {
    return false;
  }
  agInit(params: ICellRendererParams): void {
    this.params = params;
  }
}
